package com.bawei.lib_storage.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "b_history_video")
data class HistoryVideoEntity(
    @PrimaryKey(autoGenerate = true) val id: Int = 0,
    @ColumnInfo val videoId: Int, // 视频ID
    @ColumnInfo val title: String, // 视频标题
    @ColumnInfo val description: String, // 视频描述
    @ColumnInfo val coverUrl: String, // 封面图片URL
    @ColumnInfo val videoUrl: String, // 视频URL
    @ColumnInfo val userId: String, // 用户ID
    @ColumnInfo val watchTime: Long = System.currentTimeMillis(), // 观看时间
    @ColumnInfo val watchDuration: Long = 0 // 观看时长（毫秒）
) 